<?php
header("Content-Type: image/png");
$image=imagecreatetruecolor(200, 200);
$blue=imagecolorallocate($image, 0, 102,255);
$red=imagecolorallocate($image, 1, 23, 343);
 
imageline($image, 1,  0	, 222, 224, $red);
imagefill($image, 0, 0,$blue);
imagestring($image, 2, 2, 3, "liangjilongweibo",$blue);
imagepng($image);  //输出图片
 
imagedestroy($image);
?>

